package wfmanage.action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import edu.wfmanage.models.*;

public class submittedRequests extends ActionSupport {

	/**
	Author: Satya Deepthi Bhagi
	 **/
	
	private static final long serialVersionUID = 1L;
	private List<Claim> allclaims;
   User user = new User();
	public String execute() throws Exception {
		Map<String, Object> session = ActionContext.getContext().getSession();
		User user = (User) session.get("user");
		if (user == null) {
			user = new User();
		}
		allclaims=new ArrayList<Claim>();
		allclaims = Claim.find("where user_id = '"+user.getUserid()+"'");
		return "success";
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public List<Claim> getAllclaims() {
		return allclaims;
	}

	public void setAllclaims(List<Claim> allclaims) {
		this.allclaims = allclaims;
	}

	
	
}
